package constant

// StockType 股票类型
type StockType string

const (
	StockTypeNone    StockType = "Unknown"
	StockTypeETF     StockType = "ETF"
	StockTypeStock   StockType = "个股"
	StockTypeFund    StockType = "基金"
	StockTypeIndex   StockType = "指数"
	StockTypeHKIndex StockType = "港股指数"
	StockTypeHKStock StockType = "港股"
	StockTypeNASDAQ  StockType = "纳斯达克"
)

// ExchangeType 交易所类型
type ExchangeType string

const (
	ExchangeTypeNone   ExchangeType = "Unknown" // 未知
	ExchangeTypeSH                  = "SH"      // 上交所
	ExchangeTypeSZ                  = "SZ"      // 深交所
	ExchangeTypeHK                  = "HK"      // 港交所
	ExchangeTypeNASDAQ              = "NASDAQ"  // 纳斯达克
)

type MqTopicType string

const (
	// MqTopicTypeRealtime 实时行情
	//
	// func(symbol string, kline *Kline)
	MqTopicTypeRealtime = "realtime"

	// MqTopicTypeIndicatorAdd 指标添加
	//
	// func(symbol string, indicator *Indicator)
	MqTopicTypeIndicatorAdd = "indicator.add"

	// MqTopicTypeIndicatorRemove 指标删除
	//
	// func(symbol string, indicator string)
	MqTopicTypeIndicatorRemove = "indicator.remove"

	// MqTopicTypeKline K线数据
	//
	// func(symbol string, kline *Kline)
	MqTopicTypeKline = "kline" // K线数据
)
